﻿using UnityEngine;
using System.Collections;

public class getPao : MonoBehaviour {
    public static int paoNum = 5;

    void OnTriggerEnter(Collider hit)
    {
        if (hit.tag == "Player")
        {
            paoNum++;
            print("炮弹：" + paoNum);
            GetComponent<AudioSource>().Play();
            Destroy(gameObject,0.3f);
        }
    }
}
